package com.future.model;

import java.util.Date;
public class User {
	
	private Integer id;
	private Integer deptId ;
	private String deptName;
	private Integer roleId;
	private String roleName;
	private String loginName;
	private String userName;
	private String code;
	
	private String password;
	private String phone;
	private String newPwd;
	
	private Date createDate;
	private String remarl;
	
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getDeptId() {
		return deptId;
	}
	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		if(createDate==null){
			createDate = new Date();
		}
		this.createDate = createDate;
	}
	public String getRemarl() {
		return remarl;
	}
	public void setRemarl(String remarl) {
		this.remarl = remarl;
	}
	public String getNewPwd() {
		return newPwd;
	}
	public void setNewPwd(String newPwd) {
		this.newPwd = newPwd;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", deptId=" + deptId + ", deptName="
				+ deptName + ", roleId=" + roleId + ", roleName=" + roleName
				+ ", loginName=" + loginName + ", userName=" + userName
				+ ", code=" + code + ", password=" + password + ", phone="
				+ phone + ", newPwd=" + newPwd + ", createDate=" + createDate
				+ ", remarl=" + remarl + "]";
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	
}
